package com.area.cth.service;

import com.area.cth.pojo.CommentGoods;
import com.area.cth.pojo.CommentPost;
import com.area.cth.common.PageBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CommentService extends IService<CommentPost> {
    void addCommentToPost(CommentPost c);

    void addCommentToGoods(CommentGoods c);

    List<CommentPost> getCommentPostList(Integer pId);

    List<CommentGoods> getCommentGoodsList(Integer gId);

    Integer postCommentCount(Integer pId);

    List<CommentPost> commentPostListForMine();

    List<CommentGoods> commentGoodsListForMine();

    void deletePost(Integer id);

    void deleteGoods(Integer id);

    PageBean<CommentPost> commentPostList(Integer pageNo, Integer pageSize);

//    IPage<CommentGoods> commentGoodsList(Integer pageNo, Integer pageSize);
}
